<!--#include("_tool_header.html")-->

<!-- Content -->
<div id="content">

    <!-- contentHeader -->
    <div class="dashboardHeader">
        <h3 class="h3"><span class="icon shop_config"></span>{$lang->shop_second_menus[7]['dispShopToolConfigInfo']}</h3>
    </div>
    <!-- /contentHeader -->

    <div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
        <p>{$XE_VALIDATOR_MESSAGE}</p>
    </div>

    <div class="setUp">
        <form action="{Context::getRequestUri()}" method="post" enctype="multipart/form-data" ruleset="update_shop_info">
            <input type="hidden" name="act" value="procShopToolInfoUpdate" />
            <input type="hidden" name="module" value="shop" />
            <input type="hidden" name="mid" value="{$mid}" />
            <input type="hidden" name="vid" value="{$vid}" />
            <input type="hidden" name="delete_icon" value="" />

            <fieldset>
                <h4 class="h4">{$lang->default_config}</h4>
                <table border="1" cellspacing="0" class="setupData">
                    <tr>
                        <th scope="row"><label for="shopTitle">{$lang->shop_title}</label></th>
                        <td>
                            <input name="shop_title" type="text" class="iText" style="width:300px" id="shopTitle" value="{htmlspecialchars($shop->getShopTitle())}" />
                            <p>{$lang->about_shop_title}</p>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><label for="summary">{$lang->shop_description}</label></th>
                        <td>
                            <input name="shop_content" type="text" class="iText" style="width:300px" id="summary" value="{htmlspecialchars($shop->getShopContent())}" />
                            <p>{$lang->about_shop_description}</p>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><label for="telephone">{$lang->telephone}</label></th>
                        <td>
                            <input name="telephone" type="text" class="iText" style="width:300px" id="telephone" value="{htmlspecialchars($shop->getTelephone())}" />
                            <p>{$lang->about_telephone}</p>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><label for="address">{$lang->address}</label></th>
                        <td>
                            <input name="address" type="text" class="iText" style="width:300px" id="address" value="{htmlspecialchars($shop->getAddress())}" />
                            <p>{$lang->about_address}</p>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><label for="address">{$lang->shop_email}</label></th>
                        <td>
                            <input name="shop_email" type="text" class="iText" style="width:300px" id="shop_email" value="{htmlspecialchars($shop->getShopEmail())}" />
                            <p>{$lang->about_shop_email}</p>
                        </td>
                    </tr>

                </table>
            </fieldset>

            <fieldset>
                <h4 class="h4">{$lang->favicon}</h4>
                <div class="favicon">
                    <img src="{$shop->getFaviconSrc()}" width="16" height="16" alt="{$lang->registed_favicon}" class="iconFavicon url" />
                    <img src="{$shop->getFaviconSrc()}" width="16" height="16" alt="{$lang->registed_favicon}" class="iconFavicon tab" />
                    <button type="button" class="deleteFavicon" onclick="jQuery('input[name=delete_icon]').val('Y');jQuery('img.iconFavicon').attr('src','{$shop->getDefaultFaviconSrc()}');"><span>{$lang->cmd_delete_favicon}</span></button>
                </div>
                <div class="upload">
                    <input name="favicon" type="file" value="" />
                    <p>{$lang->about_favicon}</p>
                </div>
            </fieldset>

            <fieldset>
                <h4 class="h4">{$lang->lang_time_zone}</h4>
                <table border="1" cellspacing="0" class="setupData">
                    <tr>
                        <th scope="row"><label for="language">{$lang->language}</label></th>
                        <td>
                            <select id="language" name="language">
                                <!--@foreach($langs as $key => $val)-->
                                <option value="{$key}" <!--@if($key == $shop->default_language)-->selected="selected"<!--@end-->>{$val}</option>
                                <!--@end-->
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><label for="time">{$lang->timezone}</label></th>
                        <td>
                            <select id="time" name="timezone">
                                <!--@foreach($time_zone_list as $key => $val)-->
                                <option value="{$key}" <!--@if($shop->timezone==$key)-->selected="selected"<!--@end-->>{$val}</option>
                                <!--@endforeach-->
                            </select>
                        </td>
                    </tr>

                    <tr>
                        <th scope="row"><label for="unit_of_measure">{$lang->unit_of_measure}</label></th>
                        <td>
                            <select id="unit_of_measure" name="unit_of_measure">
                                <option value="{ShopInfo::UNIT_OF_MEASURE_KGS}"
                                    <!--@if($shop->getUnitOfMeasure()==ShopInfo::UNIT_OF_MEASURE_KGS)-->
                                        selected="selected"
                                <!--@end-->>
                                {ShopInfo::UNIT_OF_MEASURE_KGS}
                                </option>
                                <option value="{ShopInfo::UNIT_OF_MEASURE_LBS}"
                                <!--@if($shop->getUnitOfMeasure()==ShopInfo::UNIT_OF_MEASURE_LBS)-->
                                selected="selected"
                                <!--@end-->>
                                {ShopInfo::UNIT_OF_MEASURE_LBS}
                                </option>
                            </select>
                        </td>
                    </tr>

                    <tr>
                        <th scope="row"><label for="currency">{$lang->currency}</label></th>
                        <td>
                            <select id="currency" name="currency">
                                <!--@foreach($currencies as $key => $val)-->
                                <option value="{$key}" <!--@if($shop->getCurrency()==$key)-->selected="selected"<!--@end-->>{$key} ({$val['symbol']}) - {$val['name']}</option>
                                <!--@endforeach-->
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><label for="VAT">{$lang->VAT}</label></th>
                        <td>
                            <input name="VAT" type="text" class="iText" style="width:300px" id="VAT" value="{htmlspecialchars($shop->getVAT())}" />
                            <p>{$lang->about_VAT}</p>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><label for="show_VAT">{$lang->show_VAT}</label></th>
                        <td>
                            <select name="show_VAT" id="show_VAT">
                                <option value="N" <!--@if($shop->getShowVAT()=='N')-->selected<!--@end-->>{$lang->no}</option>
                                <option value="Y" <!--@if($shop->getShowVAT()=='Y')-->selected<!--@end-->>{$lang->yes}</option>
                            </select>
                        </td>
                    </tr>
                </table>
            </fieldset>

            <fieldset>
                <h4 class="h4">{$lang->lang_other_settings}</h4>
                <table border="1" cellspacing="0" class="setupData">
                    <tr>
                        <th scope="row"><label for="out_of_stock_products">{$lang->out_of_stock_products}</label></th>
                        <td>
                            <select name="out_of_stock_products" id="out_of_stock_products">
                                <option value="Y" <!--@if($shop->getOutOfStockProducts()=='Y')-->selected<!--@end-->>{$lang->yes}</option>
                                <option value="N" <!--@if($shop->getOutOfStockProducts()=='N')-->selected<!--@end-->>{$lang->no}</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row"><label for="minimum_order">{$lang->minimum_order}</label></th>
                        <td>
                            <input name="minimum_order" type="text" class="iText" style="width:300px" id="minimum_order" value="{htmlspecialchars($shop->getMinimumOrder())}" />
                            <p>{$lang->about_minimum_order}</p>
                        </td>
                    </tr>
                </table>
            </fieldset>

            <div class="btnArea">
                <span class="btn"><input type="submit" value="{$lang->cmd_apply}" /></span>
            </div>

        </form>
    </div>

</div>
<hr />
<!-- /Content -->

<!-- Extension -->
<!--#include("_tool_menu.html")-->
<!-- Extension -->

<!--#include("_tool_footer.html")-->
